package com.youjia.center.boot.data.mp.basic.service;

import com.baomidou.mybatisplus.core.toolkit.StringUtils;

import java.util.Map;

/**
 * @author fengjiansong
 * @date 2022/9/27 18:05
 */
class QueryHelper {

    static void getUnderLineMap(Map<String, Object> columnMap, Map<String, Object> underLineQueryMap) {
        columnMap.remove("pageIndex");
        columnMap.remove("pageSize");
        columnMap.keySet().forEach(p->{
            if (StringUtils.isCamel(p)){
                underLineQueryMap.put(StringUtils.camelToUnderline(p),columnMap.get(p));
            }
        });
    }
}
